package org.jpro.interceptor;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.method.annotation.AbstractJsonpResponseBodyAdvice;

/**
 * <P>功能描述 : JSONP调用</P>
 * <P>File name : JsonpAdvice </P>
 * <P>Author : 王泽浩 </P>
 * <P>E-Mail : 1028625100@qq.com </P>
 * <P>Date : 2017/1/2 上午12:45</P>
 */
@Order(2)
@ControllerAdvice(annotations = { Controller.class, RestController.class })
public class JsonpAdvice extends AbstractJsonpResponseBodyAdvice {
    public JsonpAdvice() {
        super("callback", "jsonp"); // 指定jsonpParameterNames
    }
}
